package com.flyme.module.base.provider.service.impl;

import com.flyme.core.base.supper.service.impl.BaseServiceImpl;
import com.flyme.module.base.client.entity.SysCompanyEva;
import com.flyme.module.base.client.entity.SysWorkCourse;
import com.flyme.module.base.client.enums.WorkingYearEnum;
import com.flyme.module.base.provider.mapper.SysCompanyEvaMapper;
import com.flyme.module.base.provider.mapper.SysWorkCourseMapper;
import com.flyme.module.base.provider.service.SysCompanyEvaService;
import com.flyme.module.base.provider.service.SysWorkCourseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author: zyf
 * @date: 2018/10/24 16:33
 * @description:
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class SysCompanyEvaServiceImpl extends BaseServiceImpl<SysCompanyEvaMapper, SysCompanyEva> implements SysCompanyEvaService {

    /**
     * 根据用户查询企业评价
     */
    public List<SysCompanyEva> selectByUser(Long userId){
        return list(q().eq("userId", userId));
    }

}
